package cc.jq1024.middleware.encrypt.domain.entity;

import java.io.Serializable;

/**
 * 密钥对
 * @author li--jiaqiang
 */
public class KeyPairs implements Serializable {

    private final String publicKey;
    private final String privateKey;

    public KeyPairs(String publicKey, String privateKey) {
        this.publicKey = publicKey;
        this.privateKey = privateKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public String getPublicKey() {
        return publicKey;
    }

    @Override
    public String toString() {
        return "KeyPairs{" +
                "privateKey='" + privateKey + '\'' +
                ", publicKey='" + publicKey + '\'' +
                '}';
    }
}
